package com.usian.service;

import com.usian.pojo.TbContent;
import com.usian.pojo.TbContentCategory;
import com.usian.utils.AdNode;
import com.usian.utils.PageResult;
import com.usian.utils.Result;

import java.util.List;

public interface ContentCategoryService {
    public List<TbContentCategory> selectContentCategoryByParentId(Long id);

    public Integer insertContentCategory(Integer parentId, String name);

    public Integer deleteContentCategoryById(Long categoryId);

    public Integer updateContentCategory(Long id, String name);

    public PageResult selectTbContentAllByCategoryId(Integer page, Integer rows, Long categoryId);

    public Integer insertTbContent(TbContent tbContent);

    public Integer deleteContentByIds(Long id);

    public List<AdNode> selectFrontendContentByAD();
}
